<template>
   <Pager :total="500" @changePager="setPager($event)" :current="current"/>
</template>

<script>
import Pager from "./index.vue"
export default {
    data(){
        return {
            current:1
        }
    },
 components:{
     Pager
 },
 methods:{
     setPager(newPage){
         this.current=newPage;
     }
 }
}
</script>

<style>
@import "~@/styles/global.less";
</style>